#include "AudioSourceResource.h"
#include "Base.h"

using namespace fxcc;

bool AudioSourceResource::LoadPath(const std::string& path)
{
    std::string suffix = fxcc::Base::GetSuffix(path);

    if (suffix == ".wav")
    {
        return LoadWav(path);
    }
    if (suffix == ".ogg")
    {
        return LoadOgg(path);
    }
    return false;
}
